package com.ruoyi.ly.mapper;

import com.github.pagehelper.Page;
import com.ruoyi.ly.domain.ServeExamineFlow;
import com.ruoyi.ly.domain.dto.PageServeExamineFlowDTO;
import com.ruoyi.ly.domain.dto.ServeFlowPlanAppDTO;
import com.ruoyi.ly.domain.vo.ConfigIdandNameVO;
import com.ruoyi.ly.domain.vo.PageProjectVO;
import com.ruoyi.ly.domain.vo.PageServeExamineFlowVO;
import com.ruoyi.ly.domain.vo.ServeExamineFlowDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ServeExamineFlowMapper {

    ////分页查询巡检记录
    Page<PageServeExamineFlowVO> pageQuery(PageServeExamineFlowDTO pageServeExamineFlowDTO);

    //查询巡检记录详情
    ServeExamineFlowDetailVO selectById(Long examineFlowId);

    //根据巡检id查询巡检记录的巡检项

    List<ConfigIdandNameVO> slectAll(Long examineFlowId);


    //将计划插入到巡检记录里面
    void insert(ServeExamineFlow serveExamineFlow);

    //提交巡检记录(小程序)
    void add(ServeExamineFlow serveExamineFlow);

    //根据巡检id查询巡检记录的巡检项(小程序端使用)
    List<ConfigIdandNameVO> slectAllApp(Long examineFlowId);
}
